package com.blb.ssm.entity;

import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author huahao
 * @since 2019-01-17
 */
@TableName("t_menu")
public class Menu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 父级id
     */
    private String pid;

    /**
     * 菜单名称
     */
    private String menuName;

    /**
     * 菜单类型
     */
    private Integer menuType;

    /**
     * 菜单图标
     */
    private String menuImg;

    /**
     * 权限标识符
     */
    private String permiss;

    /**
     * 地址
     */
    private String url;

    /**
     * 方法
     */
    private String function;

    /**
     * 顺序
     */
    private String seq;
    
    /**
     * 子项
     * @TableField(exist=false) 表示忽略映射此字段
     */
    @TableField(exist=false)
    private List<Menu> nodes;

    public List<Menu> getNodes() {
		return nodes;
	}

	public void setNodes(List<Menu> nodes) {
		this.nodes = nodes;
	}

	public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Integer getMenuType() {
        return menuType;
    }

    public void setMenuType(Integer menuType) {
        this.menuType = menuType;
    }

    public String getMenuImg() {
        return menuImg;
    }

    public void setMenuImg(String menuImg) {
        this.menuImg = menuImg;
    }

    public String getPermiss() {
        return permiss;
    }

    public void setPermiss(String permiss) {
        this.permiss = permiss;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFunction() {
        return function;
    }

    public void setFunction(String function) {
        this.function = function;
    }

    public String getSeq() {
        return seq;
    }

    public void setSeq(String seq) {
        this.seq = seq;
    }

    @Override
    public String toString() {
        return "Menu{" +
        "pid=" + pid +
        ", menuName=" + menuName +
        ", menuType=" + menuType +
        ", menuImg=" + menuImg +
        ", permiss=" + permiss +
        ", url=" + url +
        ", function=" + function +
        ", seq=" + seq +
        "}";
    }
}
